from PyQt5 import QtWidgets
from PyQt5.QtCore import pyqtSignal, Qt


# TODO: 为了实现拖拽曲线，可能需要在这里重写QLabel的几个鼠标事件
class ClickableLabel(QtWidgets.QLabel):
    clicked = pyqtSignal()

    # 鼠标左键释放时，发送clicked信号
    def mouseReleaseEvent(self, QMouseEvent):
        if QMouseEvent.button() == Qt.LeftButton:
            self.clicked.emit()
